package com.cly.entity;

import com.cly.base.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * 用户-课程联表
 *
 * @author by 春风能解释
 * <p>
 * 2024/9/25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@Accessors(chain = true)
@Schema(name = "用户-课程联表")
public class CourseUser extends BaseEntity {

    /**
     * 序列化ID
     */
    @Serial
    private static final long serialVersionUID = -4560604344187588533L;
    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Long userId;

    /**
     * 课程ID
     */
    @Schema(description = "课程ID")
    private Long courseId;

}
